#pragma once

#include "Applications/QtBaseApplication.h"

namespace QtTutorial1
{
	class QtTutorial1App : public Blobz::QtBaseApplication
	{
		Q_OBJECT
	public:
		QtTutorial1App();
		~QtTutorial1App();

	public:
		virtual bool onInitialize();
		virtual void onDeinitialize();

		virtual void onUpdate(float inFrameTime);
		virtual bool onEvent(QEvent *inEvent);

		virtual void onFingerDown(const TouchListener::TouchData& inData);
		virtual void onFingerUp(const TouchListener::TouchData& inData);
		virtual void onFingerUpdate(const TouchListener::TouchData& inData);
		virtual void onFingerExit(const TouchListener::TouchData& inData);

		virtual void paint(QPainter* inpPainter, const QStyleOptionGraphicsItem *inpOption, QWidget *inpWidget);

	private:
		QImage mBackground;
		int mNumberOfFingers;

	};
}